package com.fjec.gateway.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.fjec.common.jackson.ObjectMapperFactoryBean;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class JsonConfig {

    @Bean
    public FactoryBean<ObjectMapper> objectMapper() {
        return new ObjectMapperFactoryBean();
    }
}
